﻿CREATE TABLE [dbo].[LOG_ERPtoLCM] (
    [id]           INT            IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [ERP_ID]       INT            NULL,
    [EtoL_Type]    NVARCHAR (50)  NULL,
    [EtoL_Name]    NVARCHAR (50)  NULL,
    [I_U_D]        NCHAR (10)     NULL,
    [CanShu]       NVARCHAR (MAX) NULL,
    [Return_0_1]   INT            NULL,
    [PageUrl]      NVARCHAR (500) NULL,
    [TYPE]         NVARCHAR (10)  NULL,
    [UserName]     NVARCHAR (50)  NULL,
    [DateTime_Log] DATETIME       CONSTRAINT [DF_LOG_ERPtoLCM_DateTime_Log] DEFAULT (getdate()) NULL,
    [Flag]         INT            NULL,
    [EXE_T]        INT            NULL,
    [EXE_DATETIME] DATETIME       NULL,
    [ERP_DATETIME] DATETIME       CONSTRAINT [DF_LOG_ERPtoLCM_ERP_DATETIME] DEFAULT (getdate()) NULL,
    CONSTRAINT [PK_LOG_ERPtoLCM] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'需要POST的参数', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'LOG_ERPtoLCM', @level2type = N'COLUMN', @level2name = N'CanShu';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'执行返回值  1 成功  0 失败', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'LOG_ERPtoLCM', @level2type = N'COLUMN', @level2name = N'Return_0_1';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'ERP执行失败 标记 0  应用 程序 执行成功 标记 为 1', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'LOG_ERPtoLCM', @level2type = N'COLUMN', @level2name = N'Flag';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'程序执行 日期', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'LOG_ERPtoLCM', @level2type = N'COLUMN', @level2name = N'EXE_DATETIME';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'ERP 执行日期', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'LOG_ERPtoLCM', @level2type = N'COLUMN', @level2name = N'ERP_DATETIME';

